package cn.ipokerface.api.annotation;

import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Created by       PokerFace
 * Create Date      2019-12-09.
 * Email:           <a href="mailto:214888341@163.com">214888341@163.com</a>
 * Version          1.0.0
 * <p>
 * Description:
 *
 * @since 1.8+
 *
 */

@Target({ElementType.METHOD, ElementType.FIELD })
@Retention(RUNTIME)
@Documented
@Repeatable(ApiGroup.ApiGroups.class)
public @interface ApiGroup {

    String name() default  "";

    int id();

    int group() default -1;


    @Target({ElementType.METHOD, ElementType.FIELD })
    @Retention(RUNTIME)
    @Documented
    public @interface ApiGroups {

        ApiGroup[] value();
    }
}
